#!/bin/bash
TAG="pm_debug"
HAS=`adb shell lsmod | grep "$TAG" | awk '{printf $1}'`
if [ "$HAS" == "$TAG" ] ; then
	adb shell rmmod $TAG
fi
adb root
adb wait-for-device
TAG=$TAG".ko"
adb push $TAG data/test
adb shell insmod /data/test/$TAG
adb shell dmesg
#adb shell rmmod /data/test/vir_input.ko
